import request from '@/utils/request'
/**1.获取未结算列表*/
export const queryPage1 = '/icps/system/sign/intelligent/proDispatchLogistics/OutsourcingAndSettlement'
/**2.获取已结算记录列表*/
export const queryPage2 = '/icps/system/sign/settlement/outsource/queryPage'
/**3.生成结算单*/
export function createFinalStatement(data) {
  return request({
    url: '/icps/system/sign/intelligent/proDispatchLogistics/createFinalStatement',
    method: 'post',
    data
  })
}
/**4.保存结算单*/
export function saveFinalStatement(data) {
  return request({
    url: '/icps/system/sign/intelligent/proDispatchLogistics/saveFinalStatement',
    method: 'post',
    data
  })
}
/**5.获取结算单列表*/
export const queryPage3 = '/icps/system/sign/settlement/outsource/querySettledPage'
/**6.获取结算单明细*/
export function querySettledDetaill(data) {
  return request({
    url: '/icps/system/sign/settlement/outsource/querySettledDetaill',
    method: 'post',
    data
  })
}
/**6.外协结算获取外协单位列表*/
export function getSupplierListForsettlement() {
  return request({
    url: '/icps/system/sign/settlement/outsource/getSupplierListForsettlement ',
    method: 'post'
  })
}
/**7.根据合同类型获取生效期内的合同列表*/
export function contract_list(data) {
  return request({
    url: '/icps/system/sign/dataCollection/contract/contract_list',
    method: 'get',
    params: data
  })
}
/**7.根据合同类型获取生效期内的合同列表*/
export function queryUserByID(data) {
  return request({
    url: '/icps/system/sign/dataCollection/contract/queryUserByID',
    method: 'post',
    data
  })
}
/**8.发送给供应商*/
export function informClient(data) {
  return request({
    url: '/icps/system/sign/settlement/client/informClient',
    method: 'post',
    data
  })
}
/**9.发送给供应商后改变状态*/
export function updateSettledPage(data) {
  return request({
    url: '/icps/system/sign/settlement/outsource/updateSettledPage',
    method: 'post',
    data
  })
}
/**9.发送给供应商*/
export function updateFinalStatementStatus(data) {
  return request({
    url: '/icps/system/sign/intelligent/proDispatchLogistics/updateFinalStatementStatus',
    method: 'post',
    data
  })
}

/**10.打印结算单*/
export const outsourceexportList = '/icps/system/sign/settlement/outsource/exportList'
